<link rel="stylesheet" href="/assets/home/css/comment.css">
<!-- <img src="/assets/home/images/video6.png" style="width:100%;"> -->
<img src="{$data['thumbs']}" style="width:100%;">
<div class="weui-cells__title" style="font-size:16px;">{$data['title']}</div>
<form method="post">
    <div class="weui-cells weui-cells_form">
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <textarea id="content" class="weui-textarea" placeholder="请输入内容" name="content" rows="3"></textarea>
                <div class="weui-textarea-counter"><span>0</span>/200</div>
            </div>
        </div>
    </div>
    <div class="weui-btn-area">
        <button type="submit" class="weui-btn weui-btn_primary">立即提交</button>
    </div>
</form>
<script>
// 实时计算输入框的字数并回显
setInterval(function(){
    var textLength=$("textarea").val().length;
    $("span").text(textLength);
})
</script>